{include file="public/header" /}
 
					


					   
<main class="thinkask-main">
    <div class="container">
      <div class="row">
        <section class="col-lg-8">
            <div class="page page-default">
                <div class="page-heading clearfix">
                <h3 class="pull-left">全部问题</h3>
                <ul class="nav nav-tabs  pull-right hidden-xs">
                  <li class=" <?php if($status=="unresponsive"){ echo "active";} ?>">
                      <a href="{:url('index/question/index')}"  >等待回复</a></li>
        
                    <li class=" <?php if($status=="hot"){ echo "active";} ?>">
                      <a href="{:url('index/question/index')}?status=hot" id="sort_control_hot" >热门</a>
                    </li>
                    <li class=" <?php if($status=="recommend"){ echo "active";} ?>">
                      <a href="{:url('index/question/index')}?status=recommend" >推荐</a></li>
                    <li class=" <?php if($status!="hot"&&$status!="recommend"){ echo "active";} ?>">
                      <a href="{:url('index/question/index')}"  >最新</a></li>
                
                  </ul>
                </div>
                <div class="page-body">
                    <section class="default-question">
                      {foreach  name='$list' id="v"}
                      <div class="question-list clearfix">
                        <ul class="question-num list-unstyled m-b-n">
                          <li><span class="num"> {$v['answer_count']} </span><span class="txt"> 回复 </span></li>
                          <li><span class="num"> {$v['view_count']} </span><span class="txt"> 浏览 </span></li>
                        </ul>
                        <div class="question-content">
                          <h3 class="question-title"><a href="{:url('index/question/index')}?id={$v['question_id']}">{$v['question_content']}</a></h3>
                          <div class="question-info">
                            <ul class="tags list-unstyled pull-left m-b-n">
                              <li><a href=""><?php  $topic = unserialize($v['recent_topics']); echo $topic[0]; ?></a></li>
                            </ul>
                            <div class="pull-right">
                              <a href="" rel="nofollow">{$v.user_name}</a> {:date_friendly($v['add_time'])}发布
                            </div>
                          </div>
                        </div>
                      </div> 
                      {/foreach}
                    </section>
                </div>
            </div>
  
        </section>
        <aside class="col-lg-4">
            <div class="panel panel-body">
              <a class="btn btn-info btn-block">发布问题</a>
            </div>
            
        </aside>
      </div>
    </div>
</main>
					  
					  
					  
{include file="public/footer" /}